import request from '@/utils/request'

// 资源列表
export function resourceLists(params?: Record<string, any>) {
    return request.post({ url: '/wisdbook/resource/list', params })
}

// 资源详情
export function resourceDetail(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/resource/detail', params })
}

// 资源新增
export function resourceAdd(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/resource/add', params })
}

// 资源编辑
export function resourceEdit(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/resource/edit', params })
}

// 资源删除
export function resourceDelete(params: Record<string, any>) {
    return request.post({ url: '/wisdbook/resource/del', params })
}